package org.hyson.gofun;
import android.graphics.Point;
import android.util.Log;

public class ComputerPlayer extends Player{
	public ComputerPlayer(Pieces who, int free_pieces, boolean is_human, Board board, Game game){
		super(who, free_pieces, is_human, board, game);
		name = "Computer";
	}
	public  boolean thinkOver(){
		switch(game.getStatus()){
			case GAME_SET:
		                if(board.getKillSetPos(who, set_pos)){
		                        break;
		                }
		                if(board.getAlmostKill(who, set_pos)){
		                        break;
		                }
		                board.getFreePos(set_pos);
				break;
			case GAME_KILL:
				board.getPlayerPos(kill_pos, kill_who);
				break;
			case GAME_MOVE:
				board.getFreeMoves(src_pos, dst_pos,who);
				break;
			case GAME_SET_LAST:
				break;
		}
		return true;
	}
}

